//This is for the generation of key values to be used by the locker struct

#include "key_generator.h"
#include <stdlib.h>

void generate_key(char *key, int key_size) {
	time_t t;

	srand((unsigned) time(&t));

	int i;
	for (i = 0; i < key_size; i++) //generate a 16 character string of random characters
	{
		key[i] = kdVals[rand() % 70];
	}
}
